package org.example.exampreparationtreasure.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {
    /**
     * 密钥
     */
    private String secret;

    /**
     * 过期时间
     */
    private Long expire;

    /**
     * 令牌前缀
     */
    private String header;
}
